package com.example.shoppingmall.service;

import com.example.shoppingmall.dao.AfterSaleMapper;
import com.example.shoppingmall.pojo.Return;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AfterSaleService{
    @Autowired
    AfterSaleMapper afterSaleMapper;

    public List<Return> getReturnlist(String after, String odno, String examine, String status, String rphone, String rorderno, String aftersale, Integer pageno, Integer pageSize) {
        return afterSaleMapper.getReturnlist(after, odno, examine, status, rphone, rorderno, aftersale, pageno, pageSize);
    }

    public int rcount(String rphone, String rorderno, String examine, String status, String aftersale) {
        return afterSaleMapper.rcount(rphone, rorderno, examine, status, aftersale);
    }

    public Return selafter(Integer id){
        return afterSaleMapper.selafter(id);
    }
}
